#!/us/bin/env  node

const koa=require('koa');

const app=new koa(),
      log=console.log,
      logger=require('koa-logger'),
      task=require('./lib/task.js');


console.log('hello wangyibo');

app.use(logger());

app.use(async (ctx,next)=>{   //m.hello

  ctx.body='hello koa  cost:  ' + await task() + 'ms';

})


app.listen(8080);
